Integrand size = 31, antiderivative size = 208 \[ \int x^4 \sqrt {-c+d x} \sqrt {c+d x} \left (a+b x^2\right ) \, dx=\frac {c^4 \left (5 b c^2+8 a d^2\right ) x \sqrt {-c+d x} \sqrt {c+d x}}{128 d^6}+\frac {c^2 \left (5 b c^2+8 a d^2\right ) x (-c+d x)^{3/2} (c+d x)^{3/2}}{64 d^6}+\frac {\left (5 b c^2+8 a d^2\right ) x^3 (-c+d x)^{3/2} (c+d x)^{3/2}}{48 d^4}+\frac {b x^5 (-c+d x)^{3/2} (c+d x)^{3/2}}{8 d^2}-\frac {c^6 \left (5 b c^2+8 a d^2\right ) \text {arctanh}\left (\frac {\sqrt {-c+d x}}{\sqrt {c+d x}}\right )}{64 d^7} \]
[Out]
Time = 0.09 (sec) , antiderivative size = 208, normalized size of antiderivative = 1.00, number of steps used = 9, number of rules used = 8, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.258, Rules used = {471, 102, 12, 92, 38, 65, 223, 212} \[ \int x^4 \sqrt {-c+d x} \sqrt {c+d x} \left (a+b x^2\right ) \, dx=-\frac {c^6 \left (8 a d^2+5 b c^2\right ) \text {arctanh}\left (\frac {\sqrt {d x-c}}{\sqrt {c+d x}}\right )}{64 d^7}+\frac {c^2 x (d x-c)^{3/2} (c+d x)^{3/2} \left (8 a d^2+5 b c^2\right )}{64 d^6}+\frac {x^3 (d x-c)^{3/2} (c+d x)^{3/2} \left (8 a d^2+5 b c^2\right )}{48 d^4}+\frac {c^4 x \sqrt {d x-c} \sqrt {c+d x} \left (8 a d^2+5 b c^2\right )}{128 d^6}+\frac {b x^5 (d x-c)^{3/2} (c+d x)^{3/2}}{8 d^2} \]
[In]
[Out]
Rule 12
Rule 38
Rule 65
Rule 92
Rule 102
Rule 212
Rule 223
Rule 471
Rubi steps \begin{align*} \text {integral}& = \frac {b x^5 (-c+d x)^{3/2} (c+d x)^{3/2}}{8 d^2}-\frac {1}{8} \left (-8 a-\frac {5 b c^2}{d^2}\right ) \int x^4 \sqrt {-c+d x} \sqrt {c+d x} \, dx \\ & = \frac {\left (5 b c^2+8 a d^2\right ) x^3 (-c+d x)^{3/2} (c+d x)^{3/2}}{48 d^4}+\frac {b x^5 (-c+d x)^{3/2} (c+d x)^{3/2}}{8 d^2}+\frac {\left (5 b c^2+8 a d^2\right ) \int 3 c^2 x^2 \sqrt {-c+d x} \sqrt {c+d x} \, dx}{48 d^4} \\ & = \frac {\left (5 b c^2+8 a d^2\right ) x^3 (-c+d x)^{3/2} (c+d x)^{3/2}}{48 d^4}+\frac {b x^5 (-c+d x)^{3/2} (c+d x)^{3/2}}{8 d^2}+\frac {\left (c^2 \left (5 b c^2+8 a d^2\right )\right ) \int x^2 \sqrt {-c+d x} \sqrt {c+d x} \, dx}{16 d^4} \\ & = \frac {c^2 \left (5 b c^2+8 a d^2\right ) x (-c+d x)^{3/2} (c+d x)^{3/2}}{64 d^6}+\frac {\left (5 b c^2+8 a d^2\right ) x^3 (-c+d x)^{3/2} (c+d x)^{3/2}}{48 d^4}+\frac {b x^5 (-c+d x)^{3/2} (c+d x)^{3/2}}{8 d^2}+\frac {\left (c^2 \left (5 b c^2+8 a d^2\right )\right ) \int c^2 \sqrt {-c+d x} \sqrt {c+d x} \, dx}{64 d^6} \\ & = \frac {c^2 \left (5 b c^2+8 a d^2\right ) x (-c+d x)^{3/2} (c+d x)^{3/2}}{64 d^6}+\frac {\left (5 b c^2+8 a d^2\right ) x^3 (-c+d x)^{3/2} (c+d x)^{3/2}}{48 d^4}+\frac {b x^5 (-c+d x)^{3/2} (c+d x)^{3/2}}{8 d^2}+\frac {\left (c^4 \left (5 b c^2+8 a d^2\right )\right ) \int \sqrt {-c+d x} \sqrt {c+d x} \, dx}{64 d^6} \\ & = \frac {c^4 \left (5 b c^2+8 a d^2\right ) x \sqrt {-c+d x} \sqrt {c+d x}}{128 d^6}+\frac {c^2 \left (5 b c^2+8 a d^2\right ) x (-c+d x)^{3/2} (c+d x)^{3/2}}{64 d^6}+\frac {\left (5 b c^2+8 a d^2\right ) x^3 (-c+d x)^{3/2} (c+d x)^{3/2}}{48 d^4}+\frac {b x^5 (-c+d x)^{3/2} (c+d x)^{3/2}}{8 d^2}-\frac {\left (c^6 \left (5 b c^2+8 a d^2\right )\right ) \int \frac {1}{\sqrt {-c+d x} \sqrt {c+d x}} \, dx}{128 d^6} \\ & = \frac {c^4 \left (5 b c^2+8 a d^2\right ) x \sqrt {-c+d x} \sqrt {c+d x}}{128 d^6}+\frac {c^2 \left (5 b c^2+8 a d^2\right ) x (-c+d x)^{3/2} (c+d x)^{3/2}}{64 d^6}+\frac {\left (5 b c^2+8 a d^2\right ) x^3 (-c+d x)^{3/2} (c+d x)^{3/2}}{48 d^4}+\frac {b x^5 (-c+d x)^{3/2} (c+d x)^{3/2}}{8 d^2}-\frac {\left (c^6 \left (5 b c^2+8 a d^2\right )\right ) \text {Subst}\left (\int \frac {1}{\sqrt {2 c+x^2}} \, dx,x,\sqrt {-c+d x}\right )}{64 d^7} \\ & = \frac {c^4 \left (5 b c^2+8 a d^2\right ) x \sqrt {-c+d x} \sqrt {c+d x}}{128 d^6}+\frac {c^2 \left (5 b c^2+8 a d^2\right ) x (-c+d x)^{3/2} (c+d x)^{3/2}}{64 d^6}+\frac {\left (5 b c^2+8 a d^2\right ) x^3 (-c+d x)^{3/2} (c+d x)^{3/2}}{48 d^4}+\frac {b x^5 (-c+d x)^{3/2} (c+d x)^{3/2}}{8 d^2}-\frac {\left (c^6 \left (5 b c^2+8 a d^2\right )\right ) \text {Subst}\left (\int \frac {1}{1-x^2} \, dx,x,\frac {\sqrt {-c+d x}}{\sqrt {c+d x}}\right )}{64 d^7} \\ & = \frac {c^4 \left (5 b c^2+8 a d^2\right ) x \sqrt {-c+d x} \sqrt {c+d x}}{128 d^6}+\frac {c^2 \left (5 b c^2+8 a d^2\right ) x (-c+d x)^{3/2} (c+d x)^{3/2}}{64 d^6}+\frac {\left (5 b c^2+8 a d^2\right ) x^3 (-c+d x)^{3/2} (c+d x)^{3/2}}{48 d^4}+\frac {b x^5 (-c+d x)^{3/2} (c+d x)^{3/2}}{8 d^2}-\frac {c^6 \left (5 b c^2+8 a d^2\right ) \tanh ^{-1}\left (\frac {\sqrt {-c+d x}}{\sqrt {c+d x}}\right )}{64 d^7} \\ \end{align*}
Time = 0.46 (sec) , antiderivative size = 142, normalized size of antiderivative = 0.68 \[ \int x^4 \sqrt {-c+d x} \sqrt {c+d x} \left (a+b x^2\right ) \, dx=\frac {d x \sqrt {-c+d x} \sqrt {c+d x} \left (8 a d^2 \left (-3 c^4-2 c^2 d^2 x^2+8 d^4 x^4\right )-b \left (15 c^6+10 c^4 d^2 x^2+8 c^2 d^4 x^4-48 d^6 x^6\right )\right )-6 c^6 \left (5 b c^2+8 a d^2\right ) \text {arctanh}\left (\frac {\sqrt {-c+d x}}{\sqrt {c+d x}}\right )}{384 d^7} \]
[In]
[Out]
Time = 4.19 (sec) , antiderivative size = 184, normalized size of antiderivative = 0.88
method | result | size |
risch | \(\frac {x \left (-48 b \,x^{6} d^{6}-64 a \,d^{6} x^{4}+8 b \,c^{2} d^{4} x^{4}+16 a \,c^{2} d^{4} x^{2}+10 b \,c^{4} d^{2} x^{2}+24 a \,c^{4} d^{2}+15 b \,c^{6}\right ) \left (-d x +c \right ) \sqrt {d x +c}}{384 d^{6} \sqrt {d x -c}}-\frac {c^{6} \left (8 a \,d^{2}+5 b \,c^{2}\right ) \ln \left (\frac {x \,d^{2}}{\sqrt {d^{2}}}+\sqrt {d^{2} x^{2}-c^{2}}\right ) \sqrt {\left (d x -c \right ) \left (d x +c \right )}}{128 d^{6} \sqrt {d^{2}}\, \sqrt {d x -c}\, \sqrt {d x +c}}\) | \(184\) |
default | \(-\frac {\sqrt {d x -c}\, \sqrt {d x +c}\, \left (-48 \,\operatorname {csgn}\left (d \right ) b \,d^{7} x^{7} \sqrt {d^{2} x^{2}-c^{2}}-64 \,\operatorname {csgn}\left (d \right ) a \,d^{7} x^{5} \sqrt {d^{2} x^{2}-c^{2}}+8 \,\operatorname {csgn}\left (d \right ) b \,c^{2} d^{5} x^{5} \sqrt {d^{2} x^{2}-c^{2}}+16 \,\operatorname {csgn}\left (d \right ) a \,c^{2} d^{5} x^{3} \sqrt {d^{2} x^{2}-c^{2}}+10 \,\operatorname {csgn}\left (d \right ) b \,c^{4} d^{3} x^{3} \sqrt {d^{2} x^{2}-c^{2}}+24 \sqrt {d^{2} x^{2}-c^{2}}\, \operatorname {csgn}\left (d \right ) d^{3} a \,c^{4} x +15 \sqrt {d^{2} x^{2}-c^{2}}\, \operatorname {csgn}\left (d \right ) d b \,c^{6} x +24 \ln \left (\left (\sqrt {d^{2} x^{2}-c^{2}}\, \operatorname {csgn}\left (d \right )+d x \right ) \operatorname {csgn}\left (d \right )\right ) a \,c^{6} d^{2}+15 \ln \left (\left (\sqrt {d^{2} x^{2}-c^{2}}\, \operatorname {csgn}\left (d \right )+d x \right ) \operatorname {csgn}\left (d \right )\right ) b \,c^{8}\right ) \operatorname {csgn}\left (d \right )}{384 \sqrt {d^{2} x^{2}-c^{2}}\, d^{7}}\) | \(298\) |
[In]
[Out]
none
Time = 0.29 (sec) , antiderivative size = 138, normalized size of antiderivative = 0.66 \[ \int x^4 \sqrt {-c+d x} \sqrt {c+d x} \left (a+b x^2\right ) \, dx=\frac {{\left (48 \, b d^{7} x^{7} - 8 \, {\left (b c^{2} d^{5} - 8 \, a d^{7}\right )} x^{5} - 2 \, {\left (5 \, b c^{4} d^{3} + 8 \, a c^{2} d^{5}\right )} x^{3} - 3 \, {\left (5 \, b c^{6} d + 8 \, a c^{4} d^{3}\right )} x\right )} \sqrt {d x + c} \sqrt {d x - c} + 3 \, {\left (5 \, b c^{8} + 8 \, a c^{6} d^{2}\right )} \log \left (-d x + \sqrt {d x + c} \sqrt {d x - c}\right )}{384 \, d^{7}} \]
[In]
[Out]
\[ \int x^4 \sqrt {-c+d x} \sqrt {c+d x} \left (a+b x^2\right ) \, dx=\int x^{4} \left (a + b x^{2}\right ) \sqrt {- c + d x} \sqrt {c + d x}\, dx \]
[In]
[Out]
none
Time = 0.26 (sec) , antiderivative size = 246, normalized size of antiderivative = 1.18 \[ \int x^4 \sqrt {-c+d x} \sqrt {c+d x} \left (a+b x^2\right ) \, dx=\frac {{\left (d^{2} x^{2} - c^{2}\right )}^{\frac {3}{2}} b x^{5}}{8 \, d^{2}} + \frac {5 \, {\left (d^{2} x^{2} - c^{2}\right )}^{\frac {3}{2}} b c^{2} x^{3}}{48 \, d^{4}} + \frac {{\left (d^{2} x^{2} - c^{2}\right )}^{\frac {3}{2}} a x^{3}}{6 \, d^{2}} - \frac {5 \, b c^{8} \log \left (2 \, d^{2} x + 2 \, \sqrt {d^{2} x^{2} - c^{2}} d\right )}{128 \, d^{7}} - \frac {a c^{6} \log \left (2 \, d^{2} x + 2 \, \sqrt {d^{2} x^{2} - c^{2}} d\right )}{16 \, d^{5}} + \frac {5 \, \sqrt {d^{2} x^{2} - c^{2}} b c^{6} x}{128 \, d^{6}} + \frac {\sqrt {d^{2} x^{2} - c^{2}} a c^{4} x}{16 \, d^{4}} + \frac {5 \, {\left (d^{2} x^{2} - c^{2}\right )}^{\frac {3}{2}} b c^{4} x}{64 \, d^{6}} + \frac {{\left (d^{2} x^{2} - c^{2}\right )}^{\frac {3}{2}} a c^{2} x}{8 \, d^{4}} \]
[In]
[Out]
Leaf count of result is larger than twice the leaf count of optimal. 558 vs. \(2 (178) = 356\).
Time = 0.40 (sec) , antiderivative size = 558, normalized size of antiderivative = 2.68 \[ \int x^4 \sqrt {-c+d x} \sqrt {c+d x} \left (a+b x^2\right ) \, dx=\frac {112 \, {\left ({\left ({\left (2 \, {\left (d x + c\right )} {\left (3 \, {\left (d x + c\right )} {\left (\frac {4 \, {\left (d x + c\right )}}{d^{4}} - \frac {21 \, c}{d^{4}}\right )} + \frac {133 \, c^{2}}{d^{4}}\right )} - \frac {295 \, c^{3}}{d^{4}}\right )} {\left (d x + c\right )} + \frac {195 \, c^{4}}{d^{4}}\right )} \sqrt {d x + c} \sqrt {d x - c} + \frac {90 \, c^{5} \log \left ({\left | -\sqrt {d x + c} + \sqrt {d x - c} \right |}\right )}{d^{4}}\right )} a c + 8 \, {\left ({\left ({\left (2 \, {\left ({\left (4 \, {\left (d x + c\right )} {\left (5 \, {\left (d x + c\right )} {\left (\frac {6 \, {\left (d x + c\right )}}{d^{6}} - \frac {43 \, c}{d^{6}}\right )} + \frac {661 \, c^{2}}{d^{6}}\right )} - \frac {4551 \, c^{3}}{d^{6}}\right )} {\left (d x + c\right )} + \frac {4781 \, c^{4}}{d^{6}}\right )} {\left (d x + c\right )} - \frac {6335 \, c^{5}}{d^{6}}\right )} {\left (d x + c\right )} + \frac {2835 \, c^{6}}{d^{6}}\right )} \sqrt {d x + c} \sqrt {d x - c} + \frac {1050 \, c^{7} \log \left ({\left | -\sqrt {d x + c} + \sqrt {d x - c} \right |}\right )}{d^{6}}\right )} b c + 56 \, {\left ({\left ({\left (2 \, {\left ({\left (d x + c\right )} {\left (4 \, {\left (d x + c\right )} {\left (\frac {5 \, {\left (d x + c\right )}}{d^{5}} - \frac {31 \, c}{d^{5}}\right )} + \frac {321 \, c^{2}}{d^{5}}\right )} - \frac {451 \, c^{3}}{d^{5}}\right )} {\left (d x + c\right )} + \frac {745 \, c^{4}}{d^{5}}\right )} {\left (d x + c\right )} - \frac {405 \, c^{5}}{d^{5}}\right )} \sqrt {d x + c} \sqrt {d x - c} - \frac {150 \, c^{6} \log \left ({\left | -\sqrt {d x + c} + \sqrt {d x - c} \right |}\right )}{d^{5}}\right )} a d + {\left ({\left ({\left (2 \, {\left ({\left (4 \, {\left (5 \, {\left (d x + c\right )} {\left (6 \, {\left (d x + c\right )} {\left (\frac {7 \, {\left (d x + c\right )}}{d^{7}} - \frac {57 \, c}{d^{7}}\right )} + \frac {1219 \, c^{2}}{d^{7}}\right )} - \frac {12463 \, c^{3}}{d^{7}}\right )} {\left (d x + c\right )} + \frac {64233 \, c^{4}}{d^{7}}\right )} {\left (d x + c\right )} - \frac {53963 \, c^{5}}{d^{7}}\right )} {\left (d x + c\right )} + \frac {59465 \, c^{6}}{d^{7}}\right )} {\left (d x + c\right )} - \frac {23205 \, c^{7}}{d^{7}}\right )} \sqrt {d x + c} \sqrt {d x - c} - \frac {7350 \, c^{8} \log \left ({\left | -\sqrt {d x + c} + \sqrt {d x - c} \right |}\right )}{d^{7}}\right )} b d}{13440 \, d} \]
[In]
[Out]
Time = 49.01 (sec) , antiderivative size = 2314, normalized size of antiderivative = 11.12 \[ \int x^4 \sqrt {-c+d x} \sqrt {c+d x} \left (a+b x^2\right ) \, dx=\text {Too large to display} \]
[In]
[Out]